@use './reset.scss';

.bold {
    font-weight: 500;
}

.tac {
    text-align: center;
}

.tal {
    text-align: left;
}

.tar {
    text-align: right;
}

.ta-justify {
    text-align: justify;
}

/* 单行文字超出显示... */
.text-overflow {
    white-space: nowrap;
    overflow: hidden; /* 文本超出隐藏 */
    text-overflow: ellipsis; /* 文本超出省略号替代 */
}

/* 字体大小全局样式 */
@for $i from 10 through 50 {
    .fs-#{$i} {
        font-size: #{$i}px !important;
    }
}

/* 外边距、内边距全局样式 */
@for $i from 1 through 100 {
    .m-#{$i} {
        margin: #{$i}px !important;
    }
    .mt-#{$i} {
        margin-top: #{$i}px !important;
    }
    .mr-#{$i} {
        margin-right: #{$i}px !important;
    }
    .mb-#{$i} {
        margin-bottom: #{$i}px !important;
    }
    .ml-#{$i} {
        margin-left: #{$i}px !important;
    }
    .p-#{$i} {
        padding: #{$i}px !important;
    }
    .pt-#{$i} {
        padding-top: #{$i}px !important;
    }
    .pr-#{$i} {
        padding-right: #{$i}px !important;
    }
    .pb-#{$i} {
        padding-bottom: #{$i}px !important;
    }
    .pl-#{$i} {
        padding-left: #{$i}px !important;
    }
}

@for $i from 1 through 50 {
    .bdr-#{$i} {
        border-radius: #{$i}px !important;
    }
}

.c-fff {
    color: #fff;
}

.c-000 {
    color: #000;
}

.c-333 {
    color: #333;
}

.c-666 {
    color: #666;
}

.c-999 {
    color: #999;
}

.bg-fff {
    background-color: #fff;
}

/* 宽高 100% */
.w100 {
    width: 100%;
}

.h100 {
    height: 100%;
}

.vh100 {
    height: 100vh;
}

.max100vh {
    max-height: 100vh;
}

.min100vh {
    min-height: 100vh;
}

.w-auto {
    width: auto !important;
}

.h-auto {
    height: auto !important;
}

/* flex 弹性布局 */
.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.zhong {
    display: flex;
    align-items: center;
    justify-content: center;
}

.justify-between {
    display: flex;
    justify-content: space-between;
}

.justify-around {
    display: flex;
    justify-content: space-around;
}

.justify-end {
    display: flex;
    justify-content: flex-end;
}

.justify-center {
    display: flex;
    justify-content: center;
}

.align-center,
.items-center {
    display: flex;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-start {
    display: flex;
    align-items: flex-start;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

:deep(.uni-easyinput__content .content-clear-icon) {
    color: #ccc !important;
}
